home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
progjour
/
1991
/
01
/
b_new.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-10-31
|
321b
|
19 lines
/* b_new.c -- Listing 5. */
#include <stdlib.h>
#include "textbuf.h"
PUBLIC textbuf *b_new( int nrows, int ncols )
{
textbuf *b;
if( b = malloc( sizeof(textbuf)) )
if( !b_construct( b, nrows, ncols ) )
{
free( b );
b = NULL;
}
return b;
}